-
Notifications
You must be signed in to change notification settings - Fork 32
✨ [Frontend] Request services access #7897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [Frontend] Request services access #7897
Conversation
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at bba85b1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds the ability for sharees to see which service owners they need to contact for access, and surfaces a “Request Apps Access” dialog in the dashboard when services are inaccessible.
- Introduce a static
checkShareePermissionshelper andShareePermissionswidget for showing blocked sharees. - Add a new
RequestServiceAccesswidget to list app owners and contact info. - Refactor
CollaboratorsStudyto use the new static method and inject a “Request Apps Access” button intoResourceDetails.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/share/ShareePermissions.js | Added static permission check, popup UI, and data-structure docs |
| services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js | New widget displaying app owners, emails, and apps needing access |
| services/static-webserver/client/source/class/osparc/share/CollaboratorsStudy.js | Refactored to use checkShareePermissions instead of inline fetch |
| services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js | Inject “Request Apps Access” button into toolbar for blocked items |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js:1
- Add unit tests for the RequestServiceAccess widget to verify layout rendering and behavior when provided with various service–access datasets.
/*
services/static-webserver/client/source/class/osparc/share/RequestServiceAccess.js:71
- Calling
group.getEmail()may return undefined or an empty string if the email isn't public; add a fallback or placeholder to handle missing emails gracefully.
const email = new qx.ui.basic.Label(group.getEmail()).set({
services/static-webserver/client/source/class/osparc/share/ShareePermissions.js
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/share/ShareePermissions.js
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/share/ShareePermissions.js
Show resolved
Hide resolved
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice!
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. so next step would be to add a button to notify the owner (when we have the notifications in mplace)
|



What do these changes do?
When a project is blocked because the sharee has no access to some of its services, at the moment that user can't do much.
This PR gives the blocked user some information about the service owner. The only thing the frontend gets is the service owner's group id, which leads to his/her public information (username, email, full name). With this the sharee could contact the owner.
Related issue/s
How to test
Dev-ops